#--------------------------------------------------------------------------------------------------------------------------------------------------------
#
# Mi-DevEnv			:	http://midevenv.codeplex.com 
#					:	(c) IT Bridge 2012
#					:	A concept originated by Chris Nurse
#
# Licence			:	GNU General Public License version 2 (GPLv2)
#					:	http://midevenv.codeplex.com/license
#
# Summary           :   Install Office 2013
#
#--------------------------------------------------------------------------------------------------------------------------------------------------------

Set-StrictMode -Version Latest

if ((Get-Module MDE-Common) -eq $null) {
    Import-Module MDE-Common
    }

[string]$executionPath = Split-Path $script:MyInvocation.MyCommand.Path -Parent
[bool]$needDC = $false
[bool]$needWebServer = $false

Function InstallProduct() {

    if (Get-RunInstallation -Package GetPackageName -RequireDC $needDC -RequireIIS $needWebServer) {
        & $InstallFolder\OFFICE2013\Setup.Exe /Config $executionPath\ResponseOffice2013.xml
        Wait-SetupComplete
        }
    }
    
#region Framework

Function GetInstallName() {
    return "Microsoft Office Professional Plus 2013"
    }
    
Function GetRequireRestart() {
    return $false
    }

Function GetPackageName() {
    return "Office2013"
    }

Function GetPackageDescription() {
    return "Office 2013 Professional"
    }
    
Function GetServerBuild() {
    return $false 
    }
            
Function GetInstallPriority() {
    return 8100
    }

#endregion